
from threading import Thread
from browser.autoBrowser import Operations
from common.helper import Helper
import time,sys
if __name__ == '__main__':

    try:
        SETHEADER = sys.argv[1]
    except:
        SETHEADER = None

    opr = Operations( )

    t1 = Thread(target=opr.executeListen, args=()).start()

    while True:

        print("waiting network process starting ")

        if Helper.loaderSystemProcess():

            t2 = Thread(target=opr.pullScrollOperation, args=(SETHEADER,)).start()

            break

        time.sleep(2)

